*Note: This code estimates the models reported in Table A.19 of the Supplemental Appendix.
*	To do so, it reads-in the Stata .dta file "MonMalariaDataset.dta" and then prints relevant table output to screen.

*clear Stata
clear
clear matrix

*set memory
set more 1
set matsize 400
set mem 500m

*set working directory
cd  ""

*read-in directed-dyadic dataset
use "MonMalariaDataset.dta"

*start log file
log using "Table_A19", replace

******************************************************
******************Table A.19 Results******************
******************************************************

*Pooled model
nbreg dr_1_at_2_m malaria_2m_obsonly Lcid_per_trop_2_m Llog_trade_m  Llog_gdppc_2_m Lln_cinc_2_m Ldemocracy_2_m Llog_distance_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12

*Pooled (clustered se's) model
nbreg dr_1_at_2_m malaria_2m_obsonly Lcid_per_trop_2_m Llog_trade_m  Llog_gdppc_2_m Lln_cinc_2_m Ldemocracy_2_m Llog_distance_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12, cluster(cowcode_2)

*Fixed effects model
xtnbreg dr_1_at_2_m malaria_2m_obsonly Llog_trade_m Llog_gdppc_2_m Lln_cinc_2_m Ldemocracy_2_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12, fe

*Random effects model
xtnbreg dr_1_at_2_m malaria_2m_obsonly Lcid_per_trop_2_m Llog_trade_m Llog_gdppc_2_m Lln_cinc_2_m Ldemocracy_2_m Llog_distance_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12, i(cowcode_2) 

*close log file
log close
